package com.bdqn.t382;

import com.bdqn.t382.entity.Pet;
import com.bdqn.t382.factory.PetDaoFactory;
import com.bdqn.t382.service.PetService;
import com.bdqn.t382.service.PetServiceImpl;

public class Main {
    public static void main(String[] args) {
        PetDaoFactory.defaultBeanName = "petDaoOracleImpl";
        // 创建 PetService

        PetService petService = new PetServiceImpl();

        Pet pet = new Pet();

        pet.setName("小马喽");

        petService.save(pet);

    }
}
